﻿using System.ComponentModel.DataAnnotations;

namespace WebCarts.Models
{
    public class Cart
    {
        public int CartId { get; set; } // 电影 id

        [Display(Name = "商品ID")]
        public string? ProductId { get; set; }

        [Display(Name = "商品数量")]
        public int ProductNum { get; set; }

        [Display(Name = "商品价格")]
        public int ProductPrice { get; set; }

        [Display(Name = "用户ID")]
        public int UserId { get; set; }

        [Display(Name = "创建时间")]
        [DataType(DataType.Date)]
        public DateTime CreateTime { get; set; } // 上映日期
    }
}
